package com.klikmee.sms.cef.core;

import java.util.List;
/**
 * Defines component that services use to communicate with core platform.
 * @author makcro
 *
 */
public interface ServiceCommunicator {
	/**
	 * Sends single message to the customer as a response to his request.
	 *  
	 * @param incommingMessageId core id of the customer's request message this is reply to
	 * @param serviceId core id of the service sending reply
	 * @param chargingId charging for this reply message
	 * @param responseText text of the reply message
	 * @param serviceFlag flag for the response message
	 * @return
	 */
	public Long sendMessage( Long incommingMessageId, Long serviceId, Long chargingId, String responseText, int serviceFlag );
	/**
	 * 
	 * @param bulkMessageText
	 * @param phoneNumbers
	 * @param signatureText
	 * @param serviceId
	 * @param chargingId
	 * @return
	 */
	public int sendBulkMessage( String bulkMessageText, List<String> phoneNumbers, String signatureText, Long serviceId, Long chargingId );
}
